source comm.cfg

ssh ${JMS01} "if [ ! -d '${INSTALLDIR}' ]; then mkdir -p '${INSTALLDIR}'; fi"
ssh ${JMS02} "if [ ! -d '${INSTALLDIR}' ]; then mkdir -p '${INSTALLDIR}'; fi"

scp comm.cfg check_jms.sh jumpserver-offline-release-v3.6.4-amd64.tar.gz config-example.txt ${JMS01}:${INSTALLDIR}
scp comm.cfg check_jms.sh jumpserver-offline-release-v3.6.4-amd64.tar.gz config-example.txt ${JMS02}:${INSTALLDIR}

nohup ssh ${JMS01} "cd ${INSTALLDIR} && bash -s" < install.sh > ${JMS01}-jms.log 2>&1 &
nohup ssh ${JMS02} "cd ${INSTALLDIR} && bash -s" < install.sh > ${JMS02}-jms.log 2>&1 &
